package com.qdlc.p2p.dal.model;

import org.springframework.beans.BeanUtils;

import com.qdlc.p2p.common.util.Page;
import com.qdlc.p2p.dal.dto.ActivityAwardLog;
/**
 * 奖励方法记录Model
 * 
 * @author zlhx
 * @version 2.0
 * @date 2015-06-03 11：32
 */
public class ActivityAwardLogModel extends ActivityAwardLog {

	/** 当前页码 */
	private int page = 1;

	/** 每页数据条数 */
	private int rows = Page.ROWS;
	
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 被邀请人用户名
	 */
	private String beInvitedUserName;
	/**
	 * 红包值
	 */
	private double redEnvelopeValue;
	/**
	 * 体验券值
	 */
	private double experienceValue;
	/**
	 * 加息券值
	 */
	private double rateInterestVlue;
	
	/**
	 * 开始时间
	 */
	private String startTime;
	
	/**
	 * 结束时间
	 */
	private String endTime;
	
	private String searchName;
	/**
	 * 把activityPlan信息copy到activityPlanModel中
	 * @param activityPlan
	 * @return
	 */
	public static ActivityAwardLogModel instance(ActivityAwardLog activityAwardLog) {
		ActivityAwardLogModel activityAwardLogModel = new ActivityAwardLogModel();
		BeanUtils.copyProperties(activityAwardLog, activityAwardLogModel);
		return activityAwardLogModel;
	}
	
	/**
	 * 把activityPlanModel信息copy到activityPlan中
	 * @return
	 */
	public ActivityAwardLog prototype() {
		ActivityAwardLog activityAwardLog = new ActivityAwardLog();
		BeanUtils.copyProperties(this, activityAwardLog);
		return activityAwardLog;
	}
	
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getBeInvitedUserName() {
		return beInvitedUserName;
	}
	public void setBeInvitedUserName(String beInvitedUserName) {
		this.beInvitedUserName = beInvitedUserName;
	}
	public double getRedEnvelopeValue() {
		return redEnvelopeValue;
	}
	public void setRedEnvelopeValue(double redEnvelopeValue) {
		this.redEnvelopeValue = redEnvelopeValue;
	}
	public double getExperienceValue() {
		return experienceValue;
	}
	public void setExperienceValue(double experienceValue) {
		this.experienceValue = experienceValue;
	}
	public double getRateInterestVlue() {
		return rateInterestVlue;
	}
	public void setRateInterestVlue(double rateInterestVlue) {
		this.rateInterestVlue = rateInterestVlue;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	
}
